home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -in_the_mag- / emulation / consoles / vision-8 / sources / vdp.h < prev    next >
C/C++ Source or Header  |  1997-12-12  |  1KB  |  29 lines

  1. /****************************************************************************/
  2. /**                                                                        **/
  3. /**                                 VDP.h                                  **/
  4. /**                                                                        **/
  5. /** Routines for use with TMS9918 and compatible VDPs                      **/
  6. /**                                                                        **/
  7. /** Copyright (C) Marcel de Kogel 1997                                     **/
  8. /**     You are not allowed to distribute this software commercially       **/
  9. /**     Please, notify me, if you make any changes to this file            **/
  10. /****************************************************************************/
  11.  
  12. #ifndef __VDP_H
  13. #define __VDP_H
  14.  
  15. unsigned char vdp_get_ctrl_port (void);
  16. unsigned char vdp_get_data_port (void);
  17. void vdp_set_write_address (int offset);
  18. void vdp_set_read_address (int offset);
  19. unsigned char vdp_read_data (void);
  20. unsigned char vdp_read_status (void);
  21. void vdp_write_ctrl (unsigned char data);
  22. void vdp_write_data (unsigned char data);
  23. void vdp_set_register (unsigned char reg,unsigned char val);
  24. void vdp_fill_video_ram (int offset,int count,unsigned char val);
  25. void vdp_write_video_ram (int offset,unsigned char *addr,int count);
  26. void vdp_read_video_ram (int offset,unsigned char *addr,int count);
  27.  
  28. #endif
  29.